package com.strategy;

public class Test {
    public static void main(String[] args) {
        Context addFunc = new Context(new StrategyAdd());
        System.out.println("1 + 1 = " + addFunc.compute(1, 1));

        Context minus = new Context(new StrategySubtract());
        System.out.println("1 - 1 = " + minus.compute(1, 1));

        Context modFunc = new Context(new StrategyMod());
        System.out.println("7 % 5 = " + modFunc.compute(7, 5));
    }
}
